package ejemplo;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.layout.GridData;

public class TipoClientes extends Composite {
	private Text text_descripcion;
	private Text text_nombre;

	/**
	 * Create the composite.
	 * @param parent
	 * @param style
	 */
	public TipoClientes(Composite parent, int style) {
		super(parent, style);
		setLayout(new GridLayout(3, false));
		
		Label lblNombreDelTipo = new Label(this, SWT.NONE);
		lblNombreDelTipo.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, true, 1, 1));
		lblNombreDelTipo.setText("Nombre del tipo:");
		
		text_descripcion = new Text(this, SWT.BORDER);
		text_descripcion.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));
		
		Label lblDescripcion = new Label(this, SWT.NONE);
		lblDescripcion.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, true, 1, 1));
		lblDescripcion.setText("Descripcion:");
		
		text_nombre = new Text(this, SWT.BORDER);
		text_nombre.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));
		
		Composite composite = new Composite(this, SWT.NONE);
		composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 1));
		composite.setLayout(new GridLayout(3, false));
		
		Button button = new Button(composite, SWT.NONE);
		button.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1));
		button.setText("Consultar");
		
		Button button_1 = new Button(composite, SWT.NONE);
		button_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1));
		button_1.setText("< Anterior");
		button_1.setEnabled(false);
		
		Button button_2 = new Button(composite, SWT.NONE);
		button_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1));
		button_2.setText("Siguiente >");
		button_2.setEnabled(false);
		
		Button button_3 = new Button(composite, SWT.NONE);
		button_3.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1));
		button_3.setText("Insertar");
		
		Button button_4 = new Button(composite, SWT.NONE);
		button_4.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1));
		button_4.setText("Actualizar");
		
		Button button_5 = new Button(composite, SWT.NONE);
		button_5.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1));
		button_5.setText("Eliminar");

	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}
}
